/* 滑动图片验证组件样式 */
.slider-captcha-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-out;
}

.slider-captcha-modal {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 400px;
  max-width: 90vw;
  overflow: hidden;
  animation: slideIn 0.3s ease-out;
}

/* 头部样式 */
.slider-captcha-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e8e8e8;
  background: #fafafa;
}

.slider-captcha-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.slider-captcha-actions {
  display: flex;
  gap: 8px;
}

.slider-captcha-refresh,
.slider-captcha-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s;
  color: #1890ff;
}

.slider-captcha-refresh:hover,
.slider-captcha-close:hover {
  background: rgba(24, 144, 255, 0.1);
}

.slider-captcha-close {
  color: #666;
}

/* 图片容器 */
.slider-captcha-image-container {
  padding: 20px;
  position: relative;
}

.slider-captcha-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  border: 2px solid #e8e8e8;
}

/* 目标位置 */
.slider-captcha-target {
  position: absolute;
  border: 2px dashed #1890ff;
  background: rgba(24, 144, 255, 0.1);
  border-radius: 4px;
  pointer-events: none;
}

/* 拼图块 */
.slider-captcha-puzzle-piece {
  position: absolute;
  border: 2px solid #1890ff;
  background-size: cover;
  border-radius: 4px;
  cursor: grab;
  transition: box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slider-captcha-puzzle-piece:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 滑块容器 */
.slider-captcha-slider-container {
  padding: 0 20px 20px;
}

.slider-captcha-track {
  position: relative;
  height: 40px;
  background: #f5f5f5;
  border-radius: 20px;
  border: 1px solid #d9d9d9;
  margin-bottom: 12px;
}

.slider-captcha-slider {
  position: absolute;
  top: 0;
  width: 40px;
  height: 40px;
  background: #1890ff;
  border-radius: 50%;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
  user-select: none;
}

.slider-captcha-slider:hover {
  background: #40a9ff;
  transform: scale(1.05);
}

.slider-captcha-slider.dragging {
  cursor: grabbing;
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(24, 144, 255, 0.4);
}

.slider-captcha-arrow {
  color: white;
  font-size: 16px;
  font-weight: bold;
}

.slider-captcha-instruction {
  text-align: center;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

/* 验证结果 */
.slider-captcha-result {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 16px;
  animation: resultShow 0.3s ease-out;
  z-index: 10;
}

.slider-captcha-result.success {
  background: #f6ffed;
  color: #52c41a;
  border: 1px solid #b7eb8f;
}

.slider-captcha-result.fail {
  background: #fff2f0;
  color: #ff4d4f;
  border: 1px solid #ffccc7;
}

/* 水印 */
.slider-captcha-watermark {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 12px;
  color: #ccc;
  pointer-events: none;
}

/* 动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes resultShow {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* 响应式设计 */
@media (max-width: 480px) {
  .slider-captcha-modal {
    width: 95vw;
    margin: 10px;
  }
  
  .slider-captcha-image {
    height: 150px;
  }
  
  .slider-captcha-title {
    font-size: 14px;
  }
} 